from hashlib import md5
import time
from random import randint

def getUid():
  ts = int(time.time()*1000)
  rand = randint(1,999999)
  k = f"{ts}{rand}"
  md5_str = md5(k.encode('utf8')).hexdigest()
  # print(md5_str) 
  return md5_str

if __name__ =="__main__":
  for x in range(10):  
    getUid()